package com.spring.beans.factory.support;

import com.spring.beans.BeansException;
import com.spring.beans.factory.config.BeanDefinition;

/**
 * @Description: BeanDefinitionRegistry是一个注册表接口
 * @Author: Simon
 */
public interface BeanDefinitionRegistry {

    //向注册表中注BeanDefinition
    void registerBeanDefinition(String beanName, BeanDefinition beanDefinition);

    BeanDefinition getBeanDefinition(String beanName) throws BeansException;

    boolean containsBeanDefinition(String beanName);

    String[] getBeanDefinitionNames();
}
